import React from 'react'
import ReactDOM from 'react-dom/client'
import './index.css'
import 'antd-mobile/es/global'
import { RouterProvider } from 'react-router-dom'

import { hashRouter } from './router'
import { Loading } from 'antd-mobile'

// document.documentElement.setAttribute('data-prefers-color-scheme', 'light') // dark


ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
  <React.StrictMode>
    <React.Suspense fallback={<Loading />}>
      <RouterProvider router={hashRouter()} />
    </React.Suspense>
  </React.StrictMode>
)
